﻿clearForm("formEditor");

document.formEditor.tuid.value = "${fld:tuid}";
document.formEditor.location_id.value = "${fld:location_tuid}";
document.formEditor.location_name.value = "${fld:location_name}";
document.formEditor.room_type_id.value = "${fld:house_type_tuid}";
document.formEditor.room_type.value = "${fld:room_type}";
document.formEditor.serial_no.value = "${fld:serial_no}";
document.formEditor.unit_no.value = "${fld:unit_no}";
document.formEditor.layer_no.value = "${fld:layer_no}";
document.formEditor.unit_no_small.value = "${fld:unit_no_small}";
document.formEditor.jianzhu_area.value = "${fld:jianzhu_area}";
document.formEditor.jiesuan_area.value = "${fld:jiesuan_area}";
document.formEditor.start_date.value = "${fld:start_date}";
document.formEditor.finish_date.value = "${fld:finish_date}";

setCheckboxValue("is_high_building","${fld:is_high_building}","formEditor");
setCheckboxValue("is_top_layer","${fld:is_top_layer}","formEditor");

document.formEditor.remark.value = "${fld:remark}";
document.getElementById("form_room_list").innerHTML = "${fld:house_name}";

setReadOnly(document.formEditor.serial_no);
setReadOnly(document.formEditor.unit_no);
setReadOnly(document.formEditor.layer_no);
setReadOnly(document.formEditor.unit_no_small);

document.forms["formEditor"].elements["getroom"].style.display='none';
document.forms["formEditor"].elements["deleteCommand"].style.display='none';
document.getElementById("divEditor").style.display='';
